package com.sgb.member.entity;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * 优质企业会员
 */
public class QualityMemberBean implements Serializable {

    private String id;
    private String no; //  邀请、申请会员列表 -> 跳转企业网站字段 企业No， 其他为数据No
    @SerializedName(value = "companyNo", alternate = {"joinCompanyNo"})
    private String companyNo; //  企业No
    @SerializedName(value = "companyName", alternate = {"joinCompanyName", "name"})
    private String companyName; // 企业名称
    @SerializedName(value = "logo", alternate = {"companyLog", "companyLogo"})
    private String companyLogo; // 企业图标
    private String distance; // 优质企业推荐距离 单位Km eg: 12781.9KM
    private String serviceType; // 经营类型 -》 优质企业推荐取值
    private String serviceTypeName; // 经营类型名称 -》 邀请、申请会员取值
    private String mainBusiness; // 主营业务
    @SerializedName(value = "adress", alternate = {"address", "addr", "businessAddress", "joinCompanyBusinessAddress"})
    private String address; // 地址
    private String addressDetails; // 地址详细地址
    private String supplier; // 跳转企业网站字段 -> 优质企业推荐取值 企业No
    private boolean checked; // 邀请、申请会员列表 - 是否已邀请、申请过
    @SerializedName(value = "provinceNo", alternate = {"joinCompanyProvince"})
    private String provinceNo; // 省市区No，审批需要
    @SerializedName(value = "cityNo", alternate = {"joinCompanyCity"})
    private String cityNo;     // 省市区No，审批需要
    @SerializedName(value = "districtNo", alternate = {"joinCompanyArea"})
    private String districtNo; // 省市区No，审批需要
    @SerializedName(value = "provinceName", alternate = {"joinCompanyProvinceName", "joinCompanyProviceName"})
    private String provinceName;
    @SerializedName(value = "cityName", alternate = {"joinCompanyCityName"})
    private String cityName;
    @SerializedName(value = "districtName", alternate = {"joinCompanyAreaName"})
    private String districtName;
    @SerializedName(value = "companyId", alternate = {"joinCompanyId"})
    private String companyId; // 会员审核列表H5需要字段
    @SerializedName(value = "orderNo", alternate = {"processId"})
    private String processId; //  流程id
    @SerializedName(value = "status", alternate = {"approveStatus"})
    private int status; // 状态1.待处理2.通过3.拒绝 approveStatus 1待审批，2审批通过 3，拒绝
    private String createTime; // 邀请时间
    private String createTimeStr; // 邀请时间
    @SerializedName(value = "memberRelation", alternate = {"relation"})
    private String memberRelation; //  供方会员 、需方会员
    private String memberRelationName; //  供方会员 、需方会员
    @SerializedName(value = "approveType", alternate = {"joinWay"})
    private String approveType; //跳转到申请加盟界面// 审批类型 1 申请加盟(固定传1就行) 2邀请加盟
    @SerializedName(value = "allCategory", alternate = {"allCategoryName"})
    private List<String> allCategory;
    private List<String> firstCategory;
    private List<String> secondCategory;
    private List<String> thirdCategory;
    private List<String> fourCategory;
    private List<String> fiveCategory;
    private String approveProgress; // 1 已申请过
    
    private String applicationDescription;//申请描述
    private String invitationInstructions;// 邀请说明[v1.0.9]
    private String applyBusiness; // 申请业务[v1.0.9]
    private String membershipRequirements; // 会费要求[v1.0.9]
    private String cooperationBusiness;// 	合作业务[v1.0.9]
    private String cooperationExpected;// 合作预期[v1.0.9]
    private String userType;
    private String userTypeName;

    public String getUserTypeName() {
        return userType.equals("1")?"企业会员":"个人会员";
    }

    public void setUserTypeName(String userTypeName) {
        this.userTypeName = userTypeName;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getCreateTimeStr() {
        return createTimeStr;
    }

    public void setCreateTimeStr(String createTimeStr) {
        this.createTimeStr = createTimeStr;
    }

    public String getApplicationDescription() {
        return applicationDescription;
    }

    public void setApplicationDescription(String applicationDescription) {
        this.applicationDescription = applicationDescription;
    }

    public String getApplyBusiness() {
        return applyBusiness;
    }

    public void setApplyBusiness(String applyBusiness) {
        this.applyBusiness = applyBusiness;
    }

    public String getInvitationInstructions() {
        return invitationInstructions;
    }

    public void setInvitationInstructions(String invitationInstructions) {
        this.invitationInstructions = invitationInstructions;
    }

    public String getCooperationExpected() {
        return cooperationExpected;
    }

    public void setCooperationExpected(String cooperationExpected) {
        this.cooperationExpected = cooperationExpected;
    }

    public String getMembershipRequirements() {
        return membershipRequirements;
    }

    public void setMembershipRequirements(String membershipRequirements) {
        this.membershipRequirements = membershipRequirements;
    }

    public String getCooperationBusiness() {
        return cooperationBusiness;
    }

    public void setCooperationBusiness(String cooperationBusiness) {
        this.cooperationBusiness = cooperationBusiness;
    }

    public List<String> getFirstCategory() {
        return firstCategory;
    }

    public void setFirstCategory(List<String> firstCategory) {
        this.firstCategory = firstCategory;
    }

    public List<String> getSecondCategory() {
        return secondCategory;
    }

    public void setSecondCategory(List<String> secondCategory) {
        this.secondCategory = secondCategory;
    }

    public List<String> getThirdCategory() {
        return thirdCategory;
    }

    public void setThirdCategory(List<String> thirdCategory) {
        this.thirdCategory = thirdCategory;
    }

    public List<String> getFourCategory() {
        return fourCategory;
    }

    public void setFourCategory(List<String> fourCategory) {
        this.fourCategory = fourCategory;
    }

    public List<String> getFiveCategory() {
        return fiveCategory;
    }

    public void setFiveCategory(List<String> fiveCategory) {
        this.fiveCategory = fiveCategory;
    }

    public String getMemberRelation() {
        return memberRelation;
    }

    public void setMemberRelation(String memberRelation) {
        this.memberRelation = memberRelation;
    }

    public String getApproveProgress() {
        return approveProgress;
    }

    public void setApproveProgress(String approveProgress) {
        this.approveProgress = approveProgress;
    }

    public List<String> getAllCategory() {
        return allCategory;
    }

    public void setAllCategory(List<String> allCategory) {
        this.allCategory = allCategory;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    // 优质企业推荐
    /*
    private String name; // 企业名称
    private String logo; // 企业图标
    private String distance; // 距离 单位Km eg: 12781.9KM
    private String serviceType; // 经营类型
    private String mainBusiness; // 主营业务
    private String adress; // 地址
    private String addressDetails; // 地址详细地址
    private String supplier; // 跳转企业网站字段 企业No
    */

    // 邀请、申请会员列表
    /*
    private String name; // 企业名称
    private String companyLog; // 企业图标
    private String serviceType; // 经营类型No
    private String serviceTypeName; // 经营类型 ？ joinCompanyType 审批加盟企业类型传那个
    private String mainBusiness; // 主营业务
    private String address; // 地址
    private String no; // 跳转企业网站字段 企业No
    private boolean checked; // 是否已邀请、申请过
    private String provinceNo; // 省市区No，审批需要
    private String cityNo;     // 省市区No，审批需要
    private String districtNo; // 省市区No，审批需要
    private String companyId; // 会员审核列表H5需要字段
    */
/*
    // 邀请、申请会员记录列表
    private String no; // 数据no
    private String name; // 企业名称
    private String companyLog; // 企业图标 ? 没有字段
    private String serviceType; // 经营类型No ? null
    private String serviceTypeName; // 经营类型 ？ joinCompanyType 审批加盟企业类型传那个
    private String companyNo; //  企业No
    private String memberRelationName; //  供方会员 、需方会员
    private String processId; //  流程id
    private String addr; // 地址
    private String createTime; // 邀请时间
    private String companyId; // 会员审核列表H5需要字段
    private String status;

    // 邀请、申请审批记录列表
    private String no; // 数据no
    private String joinCompanyName;
    private String joinCompanyNo;
    private String companyId; // 会员审核列表H5需要字段 ? 没有字段
    private String joinCompanyProvince;
    private String joinCompanyCity;
    private String joinCompanyArea;
    private String createTime; // 邀请时间
    private String processId; //  流程id
    private String approveStatus;*/

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyLogo() {
        return companyLogo;
    }

    public void setCompanyLogo(String companyLogo) {
        this.companyLogo = companyLogo;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    public String getServiceTypeName() {
        return serviceTypeName;
    }

    public void setServiceTypeName(String serviceTypeName) {
        this.serviceTypeName = serviceTypeName;
    }

    public String getMainBusiness() {
        return !TextUtils.isEmpty(mainBusiness)?mainBusiness:"/";
    }

    public void setMainBusiness(String mainBusiness) {
        this.mainBusiness = mainBusiness;
    }

    public String getAddress() {
        return TextUtils.isEmpty(address)?"/":address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddressDetails() {
        return addressDetails;
    }

    public void setAddressDetails(String addressDetails) {
        this.addressDetails = addressDetails;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public String getProvinceNo() {
        return provinceNo;
    }

    public void setProvinceNo(String provinceNo) {
        this.provinceNo = provinceNo;
    }

    public String getCityNo() {
        return cityNo;
    }

    public void setCityNo(String cityNo) {
        this.cityNo = cityNo;
    }

    public String getDistrictNo() {
        return districtNo;
    }

    public void setDistrictNo(String districtNo) {
        this.districtNo = districtNo;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getProcessId() {
        return processId;
    }

    public void setProcessId(String processId) {
        this.processId = processId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getMemberRelationName() {
        return memberRelationName;
    }

    public void setMemberRelationName(String memberRelationName) {
        this.memberRelationName = memberRelationName;
    }

    public String getApproveType() {
        return approveType;
    }

    public void setApproveType(String approveType) {
        this.approveType = approveType;
    }
}
